<%@page import="com.cloudbroker.bcs.platform.dav.configure.define.ConfigureCatalog"%>
<%@page import="com.cloudbroker.bcs.platform.dav.configure.define.XMLConfigParser"%>
<%@page import="java.util.Collection"%>
<%@ page session="false" language="java"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<link href="/css/global.css" rel="stylesheet">
</head>
<body>
	<table id="configureList" class="tableStyle" cellpadding="0"
		cellspacing="0" width="100%" align="center">
		<thead>
			<tr>
				<th class="ID">序号</th>
				<th class="borderN">分类</th>
				<th class="borderN">描述</th>
				<th class="borderN">操作</th>
			</tr>
		</thead>
		<tbody>
			<%
			    Collection<ConfigureCatalog> catalogs = XMLConfigParser.getCatalogList();
						    for (ConfigureCatalog catalog : catalogs) {
			%>
			<tr>
				<td><%=catalog.getId()%></td>
				<td><%=catalog.getName()%></td>
				<td><%=catalog.getDescription()%></td>
				<td>
					<%
					    String content = null;
					        if (catalog.getStatus() == 0) {
					            content = "<font color='red'>未配置</font>";
					        } else if (catalog.getStatus() == 1) {
					            content = "<font color='red'>更新</font>";
					        } else {
					            content = "配置";
					        }
					%> <a class="modify"
					href="toModify?catalogId=<%=catalog.getId()%>"><%=content%></a>
				</td>
			</tr>
			<%
			    }
			%>
		</tbody>
	</table>
</body>
</html>
